package com.xmgong.hxdemo.chatmodule.pages.chat;

import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMConversation;

/**
 * Created by xmgong on 2017/8/16.
 */

public class ChatPresent implements ChatContract.IPresent {

    ChatContract.IView mView;

    public ChatPresent(ChatContract.IView mView) {
        this.mView = mView;
    }

    @Override
    public void delMessage(String username, String messageid) {
        //删除当前会话的某条聊天记录
        EMConversation conversation = EMClient.getInstance().chatManager().getConversation(username);
        conversation.removeMessage(messageid);
    }
}
